package pers.qianyu.module.core.domain.image.converter;

import org.springframework.stereotype.Component;
import pers.qianyu.module.core.comm.BaseConverter;
import pers.qianyu.module.core.domain.image.entity.LabelPO;
import pers.qianyu.module.core.domain.image.vo.LabelVO;

/**
 * @author mizzle rain
 * @date 2021-05-01 14:02
 */
@Component
public class LabelConverter extends BaseConverter {
    public LabelVO convToVo(LabelPO labelPO) {
        LabelVO labelVO = new LabelVO();
        labelVO.setName(labelPO.getName());
        entityToVO(labelPO, labelVO);
        return labelVO;
    }
}
